import java.util.Date;

public class Student {
        //学号
        private int sno;
        //姓名
        private String sname;
        //年龄
        private int sage;
        //入学时间
        private Date sdate;
        //成绩
        private double score;

        @Override
        public String toString() {
            return "Student{" +
                    "sno=" + sno +
                    ", sname='" + sname + '\'' +
                    ", sage=" + sage +
                    ", sdate=" + sdate +
                    ", score=" + score +
                    '}';
        }

        public Student(int sno, String sname, int sage, Date sdate, double score) {
            this.sno = sno;
            this.sname = sname;
            this.sage = sage;
            this.sdate = sdate;
            this.score = score;
        }

        public Student() {
        }

        public int getSno() {
            return sno;
        }

        public void setSno(int sno) {
            this.sno = sno;
        }

        public String getSname() {
            return sname;
        }

        public void setSname(String sname) {
            this.sname = sname;
        }

        public int getSage() {
            return sage;
        }

        public void setSage(int sage) {
            this.sage = sage;
        }

        public Date getSdate() {
            return sdate;
        }

        public void setSdate(Date sdate) {
            this.sdate = sdate;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }
    }
